package autoorder.zsxmlv.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

public class Order {
    private Integer id;

    private Integer userId;

    private String qrCode;

    private String orderNum;

    private Integer isOk;

    private Integer goodsId;

    private Integer taskId;

    private BigDecimal payMoney;

    private BigDecimal goodsPrice;

    private BigDecimal freight;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    private String goodsName;

    private String goodsUrl;

    private String account;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode == null ? null : qrCode.trim();
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum == null ? null : orderNum.trim();
    }

    public Integer getIsOk() {
        return isOk;
    }

    public void setIsOk(Integer isOk) {
        this.isOk = isOk;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public BigDecimal getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getFreight() {
        return freight;
    }

    public void setFreight(BigDecimal freight) {
        this.freight = freight;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public String getGoodsUrl() {
        return goodsUrl;
    }

    public void setGoodsUrl(String goodsUrl) {
        this.goodsUrl = goodsUrl == null ? null : goodsUrl.trim();
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public Order() {
    }

    public Order(Integer userId, String qrCode, String orderNum, Integer isOk, Integer goodsId, Integer taskId, BigDecimal payMoney, BigDecimal goodsPrice, BigDecimal freight, Date createTime, Date updateTime, String goodsName, String goodsUrl, String account) {
        this.userId = userId;
        this.qrCode = qrCode;
        this.orderNum = orderNum;
        this.isOk = isOk;
        this.goodsId = goodsId;
        this.taskId = taskId;
        this.payMoney = payMoney;
        this.goodsPrice = goodsPrice;
        this.freight = freight;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.goodsName = goodsName;
        this.goodsUrl = goodsUrl;
        this.account = account;
    }

    public Order(Integer id, Integer userId, String qrCode, String orderNum, Integer isOk, Integer goodsId, Integer taskId, BigDecimal payMoney, BigDecimal goodsPrice, BigDecimal freight, Date createTime, Date updateTime, String goodsName, String goodsUrl, String account) {
        this.id = id;
        this.userId = userId;
        this.qrCode = qrCode;
        this.orderNum = orderNum;
        this.isOk = isOk;
        this.goodsId = goodsId;
        this.taskId = taskId;
        this.payMoney = payMoney;
        this.goodsPrice = goodsPrice;
        this.freight = freight;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.goodsName = goodsName;
        this.goodsUrl = goodsUrl;
        this.account = account;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userId=" + userId +
                ", qrCode='" + qrCode + '\'' +
                ", orderNum='" + orderNum + '\'' +
                ", isOk=" + isOk +
                ", goodsId=" + goodsId +
                ", taskId=" + taskId +
                ", payMoney=" + payMoney +
                ", goodsPrice=" + goodsPrice +
                ", freight=" + freight +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", goodsName='" + goodsName + '\'' +
                ", goodsUrl='" + goodsUrl + '\'' +
                ", account='" + account + '\'' +
                '}';
    }
}